<template>
  <div class="LearnMore mb70">
    <div class="LearnMore_title mb20">
      <h3 class="title ptb10">{{$t("Choose the style that suits you")}}</h3>
      <p class="size14 lh15 text_c ptb15">{{$t("Our featured categories")}}</p>
    </div>
    <div class="LearnMore_wrapper">
      <div class="LearnMore_shop">
        <div class="LearnMore_shop_img">
          <img
            class="img"
            :src="require('~/assets/image/home/img_7.png')"
            alt=""
          />
        </div>
        <div class="LearnMore_shop_txt">
          <h4 class="size20 b text_c lh14">{{$t("How to buy glasses online")}}</h4>
          <p class="size14 lh15 text_c ptb15">
            {{$t("See yourself in any pair form your home")}}
          </p>
          <div class="btns">
            <nuxt-link to="/help?id=Ordering&indexlz=0" class="btn ptb10 plr20">{{$t("Learn more")}}</nuxt-link>
          </div>
        </div>
      </div>
      <div class="LearnMore_shop">
        <div class="LearnMore_shop_img">
          <img
            class="img"
            :src="require('~/assets/image/home/img_8.png')"
            alt=""
          />
        </div>
        <div class="LearnMore_shop_txt">
          <h4 class="size20 b text_c lh14">{{$t("Virtual Try-On")}}</h4>
          <p class="size14 lh15 text_c ptb15">
            {{$t("Help you buy online glasses that suit you")}}
          </p>
          <div class="btns">
            <nuxt-link to="/virtual-tryon" class="btn ptb10 plr20">{{$t("Learn more")}}</nuxt-link>
          </div>
        </div>
      </div>
      <div class="LearnMore_shop">
        <div class="LearnMore_shop_img">
          <img
            class="img"
            v-lazy="require('~/assets/image/home/img_9.png')"
            alt=""
          />
        </div>
        <div class="LearnMore_shop_txt">
          <h4 class="size20 b text_c lh14">{{$t("Measure Your PD")}}</h4>
          <p class="size14 lh15 text_c ptb15">
            {{$t("Seeing clearly starts here")}}
          </p>
          <div class="btns">
            <nuxt-link to="/help?id=Prescriptions&indexlz=0" class="btn ptb10 plr20">{{$t("Learn more")}}</nuxt-link>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
@import "~/assets/scss/index.scss";
.LearnMore {
  max-width: 1200px;
  margin: 0 auto;
  &_title {
    width: 100%;
    text-align: center;
    .title {
      font-size: 28px;
      font-weight: bold;
    }
    .txt {
      font-size: 14px;
      font-weight: bold;
    }
  }
  &_wrapper {
    @include flex();
    justify-content: space-between;
    flex-wrap: wrap;
  }
  &_shop {
    @include boxShadow();
    position: relative;
    width: 32.5%;
    border-radius: 10px;
    &_img {
      position: relative;
      padding-top: 58%;
      .img {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        border-radius: 10px 10px 0 0;
      }
    }
    &_txt {
      @include flex-center(flex-end);
      flex-direction: column;
      border-left: 1px solid $ddd;
      border-right: 1px solid $ddd;
      border-bottom: 1px solid $ddd;
      box-sizing: border-box;
      padding: 15px 10%;
      height: 150px;
      border-radius: 0 0 10px 10px;
      .btns {
        @include flex-center();
        width: $s100;
        .btn {
          @include flex-center(center);
          border: 1px solid $c333;
          font-size: 14px;
          border-radius: 20px;
          font-weight: bold;
          &:hover {
            color: $cfff;
            background: $theme1;
            border: 1px solid $theme1;
          }
        }
      }
      .txt {
        font-size: 12px;
        line-height: 1.5;
        text-align: center;
        padding: 15px 0;
      }
      .ellipsis {
        @include ellipsis();
      }
    }
  }
}
</style>